home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / batch.arc / PAGE.ASM < prev    next >
Encoding:
Assembly Source File  |  1986-01-04  |  1.4 KB  |  70 lines

  1. ;
  2.         page    60,132
  3.         title    Send a Form Feed to the Printer 
  4. ;
  5. ;    Author:    Marty Prahl
  6. ;    Date:    12-dec-84
  7. ;    Rev:    1.0
  8. ;
  9. ;    Copyright (c) 1984 by Marty Prahl
  10. ;
  11. ;    Abstract:
  12. ;
  13. ;        This routine provides for sending a standard form feed 
  14. ;        to the first printer port lpt1 via the standard dos printer
  15. ;        output.
  16. ;
  17. ;    Calling Sequence:
  18. ;
  19. ;        A>PAGE
  20. ;
  21. ;---------------------------------------------------------------------------
  22. ;
  23. ;    Symbols
  24. ;
  25. ;---------------------------------------------------------------------------
  26. ;
  27. cseg        segment para    public 'CODE'
  28.         assume    cs:cseg, ds:cseg
  29.  
  30.         org    0100h
  31.  
  32.         include system.mac
  33.  
  34.         dos_functions
  35.  
  36.         page
  37. ;
  38. ;---------------------------------------------------------------------------
  39. ;
  40. ;    Local Data
  41. ;
  42. ;---------------------------------------------------------------------------
  43. ;
  44. ff    equ    12            ; form feed
  45.  
  46.         page
  47. ;
  48. ;---------------------------------------------------------------------------
  49. ;
  50. ;    Form Feed
  51. ;
  52. ;---------------------------------------------------------------------------
  53. ;
  54. form_feed:
  55. ;
  56. ;    Send a single character to the printer
  57. ;
  58.         mov    dl,ff        ; form feed
  59.         mov    ah,ptr_out    ; standard printer output
  60.         int    dos        ; dos interrupt
  61. ;
  62. ;    Terminate through dos with no errorlevel set
  63. ;
  64.         mov    al,0        ; no error on return
  65.         mov    ah,exit_proc    ; dos terminate
  66.         int    dos        ; dos interrupt
  67.  
  68. cseg        ends
  69.         end    form_feed
  70.